
<form id="post_form" method="post" action="{:url('member/Returns/ship')}?return_id=<?php echo $return['refund_id']; ?>">
  <input type="hidden" name="form_submit" value="ok" />
  <h3>请填写退货发货信息</h3>
  <dl>
    <dt>物流公司：</dt>
    <dd>
      <select name="express_id">
        <option value="0">-请选择-</option>
        <?php if(!empty($express_list) && is_array($express_list)){?>
        <?php foreach($express_list as $key=> $val){?>
        <option value="<?php echo $val['id']; ?>"><?php echo $val['e_name']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </dd>
  </dl>
  <dl>
    <dt><i class="required">*</i>物流单号：</dt>
    <dd>
      <input type="text" class="text w150" name="invoice_no" value="" />
      <p class="hint">发货 <?php echo $return_delay;?> 天后，当商家选择未收到则要进行延迟时间操作；
        如果超过 <?php echo $return_confirm;?> 天不处理按弃货处理，直接由管理员确认退款。</p>
    </dd>
  </dl>
  <div class="bottom">
    <label class="submit-border">
      <input type="submit" class="submit" id="confirm_button" value="确认" />
    </label>
      <a href="javascript:history.go(-1);" class="ncbtn ml10"><i class="icon-reply"></i>返回列表</a>
  </div>
</form>
<script type="text/javascript">
$(function(){
    $('#post_form').validate({
        errorLabelContainer: $('#warning'),
        invalidHandler: function(form, validator) {
               $('#warning').show();
        },
		submitHandler:function(form){
			ajaxpost('post_form', '', '', 'onerror')
		},
        rules : {
            invoice_no : {
                required   : true,
                minlength : 8,
                maxlength : 20
            }
        },
        messages : {
            invoice_no  : {
                required   : '请填写物流单号',
                minlength  : '物流单号至少为8个字符',
                maxlength  : '物流单号最多为20个字符',
            }
        }
    });
});
</script>
